package com.lanxiaoye.shoppingSystem.dao;

import com.lanxiaoye.shoppingSystem.entity.UserOrder;

import java.util.List;

public interface UserOrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(UserOrder record);

    int insertSelective(UserOrder record);

    UserOrder selectByPrimaryKey(Integer orderId);

    List<UserOrder> selectByUserId(Integer userId);

    int updateByPrimaryKeySelective(UserOrder record);

    int updateByPrimaryKey(UserOrder record);

    int updateStatusToCancel(Integer userId);

    int updateStatusToPay(Integer userId);

}